package ycl.common.constants;

/**
 * 文件常量
 *
 * @author: YCL
 * @date: 2021-09-02 12:54:07
 */
public class FileConstant {

	public static final String UPLOAD_TYPE_FILE = "file";//上传文件类型
	public static final boolean UPLOAD_REQUIRED = true;//默认为校验非空
	public static final String UPLOAD_DATATYPE = "MultipartFile";//文件类型
	public static final boolean UPLOAD_ALLOW_MULTIPLE = true;//允许多个文件同时上传
	public static final String UPLOAD_PARAM_TYPE = "query";//查询参数


	public static final String[] IMAGE_SUFFIX = {
			"jpg", "jpeg", "png", "gif", "webp",
			"bmp"
	};


	public static final String[] VIDEO_SUFFIX = {
			"mp4", "mkv"
	};


	public static final String[] APK_SUFFIX = {
			"apk"
	};


	public static final String[] AUDIO_SUFFIX = {
			"mp3"
	};

}
